package com.example.wujinapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.wujinapi.entity.Address;
import com.example.wujinapi.entity.Favourites;
import com.example.wujinapi.entity.Users;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
 * (Address)表服务接口
 *
 * @author makejava
 * @since 2023-07-10 22:37:43
 */
public interface AddressService extends IService<Address> {
    void addAddress(Address address);
    void updateAddressById(Address address);
    void deleteAddress(int addrId);
    List<Address> getAddressesByOpenid(String wxOpenid);
    @MapKey("id")
    List<Map<String,Object>> getFavouritAddresses(int pageNum, int pageSize);
}

